package cn.schoolwow.quickdao.test.module.business.user.dml.json.testcase;

import cn.schoolwow.quickdao.test.module.business.user.dml.json.flow.edit.UpdateUserJSONByIdProcessFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.edit.common.CheckUpdateUserResultFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class UpdateUserJSONByIdTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new AddUserJSONTestCaseFlow())
                .next(new UpdateUserJSONByIdProcessFlow())
                .next(new CheckUpdateUserResultFlow())
                .execute();
    }

    @Override
    public String name() {
        return "根据id更新用户测试用例-JSON";
    }
}
